//-----------------------------------------------------------------------
// <copyright file="a_UserCreditTransLogService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_UserCreditTransLogService
    {
        #region a_UserCreditTransLog

        public static void Createa_UserCreditTransLog(a_UserCreditTransLog a_UserCreditTransLog)
        {            
            try
            {
                a_UserCreditTransLogDAO a_UserCreditTransLogDAO = new a_UserCreditTransLogDAO();
                a_UserCreditTransLogDAO.Createa_UserCreditTransLog(a_UserCreditTransLog);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_UserCreditTransLog(a_UserCreditTransLog a_UserCreditTransLog)
        {            
            try
            {
                a_UserCreditTransLogDAO a_UserCreditTransLogDAO = new a_UserCreditTransLogDAO();
                a_UserCreditTransLogDAO.Updatea_UserCreditTransLog(a_UserCreditTransLog);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_UserCreditTransLog(int creditTransID)
        {            
            try
            {
                a_UserCreditTransLogDAO a_UserCreditTransLogDAO = new a_UserCreditTransLogDAO();
                a_UserCreditTransLogDAO.Deletea_UserCreditTransLog(creditTransID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_UserCreditTransLog Geta_UserCreditTransLog(int creditTransID)
        {            
            try
            {
                a_UserCreditTransLogDAO a_UserCreditTransLogDAO = new a_UserCreditTransLogDAO();
                return a_UserCreditTransLogDAO.Geta_UserCreditTransLog(creditTransID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_UserCreditTransLogCollection Geta_UserCreditTransLogList(a_UserCreditTransLogColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_UserCreditTransLogDAO a_UserCreditTransLogDAO = new a_UserCreditTransLogDAO();
                return a_UserCreditTransLogDAO.Geta_UserCreditTransLogList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_UserCreditTransLogCollection Geta_UserCreditTransLogList(a_UserCreditTransLogColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_UserCreditTransLogDAO a_UserCreditTransLogDAO = new a_UserCreditTransLogDAO();
                return a_UserCreditTransLogDAO.Geta_UserCreditTransLogList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}